package com.saild.springcloud.control;

import com.saild.springcloud.bean.CommonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类描述：
 * 创建者: 许少东
 * 日期: 9/28/21
 */
@RestController
@Slf4j
public class PaymentControl {

    @RequestMapping(value = "/consumer/payment/get/{id}")
    public CommonResult test() {
        return new CommonResult(200, "测试成功", null);
    }

    @RequestMapping(value = "/hello")
    public String hello() {
        return "你好，苹果";
    }
}
